/**
 * @author        yangmingchao <amustlang_yang@foxmail.com>
 * @date          2024-01-11 23:05:25
 * Copyright © YourCompanyName All rights reserved
 */
import request from '@/utils/request'

// 查询系统配置列表
export function listConf(query) {
  return request({
    url: '/drama/conf/page',
    method: 'get',
    params: query
  })
}

// 查询系统配置详细
export function getConf(id) {
  return request({
    url: '/drama/conf/' + id,
    method: 'get'
  })
}

// 新增系统配置
export function addConf(data) {
  return request({
    url: '/drama/conf',
    method: 'post',
    data: data
  })
}

// 修改系统配置
export function updateConf(data) {
  return request({
    url: '/drama/conf',
    method: 'put',
    data: data
  })
}

// 删除系统配置
export function delConf(id) {
  return request({
    url: '/drama/conf/' + id,
    method: 'delete'
  })
}
